﻿#pragma once

#include <QDialog>
#include "ui_UserInfoForm.h"
#include<Tool/UserInfo.h>
class UserInfoForm : public QDialog
{
	Q_OBJECT

public:
	UserInfoForm(QWidget *parent = nullptr);
	~UserInfoForm();

    void setUserInfo(const UserInfo& userinfo);
    UserInfo GetUserInfo();
	
private :
	void updateUI();
	void SaveInfo();
	
private:
	Ui::UserInfoFormClass ui;
    UserInfo m_userInfo;
	

private slots:

	void on_buttonSave_clicked();
	void on_buttonCancel_clicked();
	void on_buttonSel_clicked();
	void on_buttonShowHide_clicked();
};
